class Solution {
public:
    int getSum(int a, int b)
    {
        int c = a ^b;
        int d = a & b;
        while(d) {
            d<<=1;
            return getSum(c, d);
        }
        return c;
    }
};